var Mock = require('mockjs');

exports.response = function (req, res) {
    return Mock.mock({
        "msg": "OK",
        "code": 0,
        "data": {
            "field": [
                {
                    "id": "code",
                    "name": "代码"
                },
                {
                    "id": "name",
                    "name": "名称"
                },
                {
                    "id": "holdingNumber",
                    "name": "持仓数量"
                },
                {
                    "id": "marketValue",
                    "name": "持仓市值"
                },
                {
                    "id": "currentTicketInterest",
                    "name": "当期票息"
                },
                {
                    "id": "remainingPeriod",
                    "name": "剩余期限（年）"
                },
                {
                    "id": "returnMaturityRate",
                    "name": "到期收益率"
                },
                {
                    "id": "bondRating",
                    "name": "债券评级"
                },
                {
                    "id": "subjectRating",
                    "name": "主体评级"
                },
                {
                    "id": "firstLevelIndustry",
                    "name": "一级行业"
                }
            ],
            "list|22": [
                {
                    "code|+1": 1,
                    "name": "国农科技",
                    "holdingNumber": 4500,
                    "marketValue": 13.51,
                    "currentTicketInterest": 0.0039,
                    "remainingPeriod": 34.55,
                    "returnMaturityRate": 0.29,
                    "bondRating": "债券评级",
                    "subjectRating": "主体评级",
                    "firstLevelIndustry": "一级行业"
                }
            ]
        }
    })
}